﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace MiserBlogHelper.Helper
{
    public class ImageHelper
    {
        /// <summary>
        /// Blog文章的物理相对路径
        /// </summary>
        public static string BlogPublishRelativePath
        {
            get { return System.Configuration.ConfigurationManager.AppSettings["blog_publish"]; }
        }

        public static string BlogPublishPhysicsPath
        {
            get { return HttpContext.Current.Server.MapPath(BlogPublishRelativePath); }
        }

        public static string GetImageExtendName(string contentType)
        {
            
            switch (contentType)
            {
                case "image\\jpeg" :
                default :return ".jpeg";
            }
        }
    }
}
